package Array.IThimaAPI;
import java.util.Scanner;
public class api1 {
    /*
      nextLine();可以将数据完整的接收过来


      next(); 遇到空格就不再录入数据
     */
    public static void main(String[] args){
        //1.创建Scanner对象
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入");
        //2.调用nextLine方法接收字符串
        String name= sc.nextLine();
        System.out.println(name);
    }
}
